const { verify } = require('crypto')
const jwt = require('jsonwebtoken')
const { promisify } = require('util')
// 将jwt回调转换为promise
// 导出jwt
exports.sign = promisify(jwt.sign)
exports.verify = promisify(jwt.verify)
exports.decode = promisify(jwt.decode)